import store from '@/store'
export default {
  methods: {
    canClick (points) {
      const { user } = store.state.user
      return user.roles?.points.includes(points)
    },
    log (txt, bg) {
      console.log(`%c ${txt}`, `width:100px;height:20px;padding:5px 0;padding-right:5px;border-radius:5px;background:${bg || '#42b983'};color:#fff;`)
    }
  }
}
